home *** CD-ROM | disk | FTP | other *** search
/ Workplace Effectiveness: Critical Thinking Skills / Workplace Effectiveness: Critical Thinking Skills.iso / pc / Files / Clue.dxr / 00003_Navigation handlers.ls < prev    next >
Encoding:
Text File  |  1998-09-17  |  724 b   |  34 lines

  1. global gMasterData, gSection, gClueData
  2.  
  3. on goIntro
  4.   go("intro")
  5.   set gSection to #intro
  6. end
  7.  
  8. on goQuestions
  9.   stopSound2()
  10.   go("1")
  11.   audio1xOnly(gMasterData, "58")
  12.   set gSection to #questions
  13.   if voidp(gClueData) then
  14.     set gClueData to [#questionNum: 1, #answerSprite: 5, #score: 0, #clickChoices: [#e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e, #e]]
  15.   end if
  16.   set the questionNum of gClueData to 1
  17. end
  18.  
  19. on goAnswers
  20.   go("a1")
  21.   goNarrator(gMasterData, "59a")
  22.   set gSection to #answers
  23.   set the questionNum of gClueData to 1
  24. end
  25.  
  26. on goScore
  27.   go("score")
  28.   displayResult()
  29.   if not activationOn(gMasterData) then
  30.     activate(gMasterData)
  31.   end if
  32.   set gSection to #score
  33. end
  34.